
KERNEL_PATH := /lib/modules/$(shell uname -r)/build

CURRENT_PATH := $(shell pwd)

obj-m += character_device.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNEL_PATH) M=$(CURRENT_PATH) modules
clean:
	$(MAKE) -C $(KERNEL_PATH) M=$(CURRENT_PATH) clean
